<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html">

    <h2>General Examples</h2>

    <p>
        So, we're using Spring Security and not JEE container security. Where do you start? Here!
    </p>

    <h3>
        Spring configuration
    </h3>

    <p>
        Configure Spring in your web application. You do this by adding a spring context-param to your web.xml. The
        text below is how this application is configured.
    </p>

    <p>
        <f:verbatim escape="true">
            <context-param>
                <param-name>contextConfigLocation</param-name>
                <param-value>
                    /WEB-INF/applicationContext.xml
                    /WEB-INF/applicationSecurityContext.xml
                </param-value>
            </context-param>
            <listener>
                <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
            </listener>
            <listener>
                <listener-class>
                    org.springframework.web.context.request.RequestContextListener
                </listener-class>
            </listener>

            <!-- Filter Config -->
            <filter>
                <filter-name>springSecurityFilterChain</filter-name>
                <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
            </filter>
            <!-- Filter Mappings -->
            <filter-mapping>
                <filter-name>springSecurityFilterChain</filter-name>
                <url-pattern>/*</url-pattern>
                <dispatcher>FORWARD</dispatcher>
                <dispatcher>REQUEST</dispatcher>
            </filter-mapping>
        </f:verbatim>
    </p>
</div>